package br.com.tenax.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DAO {

	public static Connection getConexao() throws SQLException {
		Connection conexaoNativa = null;
		try {
			Class.forName("org.postgresql.Driver");

			String url = "jdbc:postgresql://localhost:5432/BDTenax";
			String usuario = "postgres";
			String senha = "tenax01";

			conexaoNativa = DriverManager.getConnection(url, usuario, senha);
		} catch (ClassNotFoundException e) {
			System.err.println(e);
		}

		return conexaoNativa;
	}

}
